<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <style>
      body {
        padding: 100px;
      }
      div {
        background-color: darkcyan;
        width: 300px;
        height: 50px;
        position: relative;
      }
      div::before {
        content: '';
        position: absolute;
        width: 100px;
        height: 50px;
        background-color: darkorange;
        left: -100px;
      }
      div::after {
        content: '';
        position: absolute;
        width: 100px;
        height: 50px;
        background-color: rgb(194, 20, 122);
        right: -100px;
      }
    </style>
    <div>yahoo</div>
  </body>
</html>
